package com.redis.model;

import java.io.Serializable;

/**
 * 用户bean
 * @author YI
 * @date 2018-4-8 11:42:23
 */
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private String id;
    /**
     * 姓名
     */
    private String name;
    /**
     * 得分
     */
    private double score;
    /**
     * 排名
     */
    private int rank;

    public User() {
        super();
    }

    public User(String id, String name, double score, int rank) {
        this.id = id;
        this.name = name;
        this.score = score;
        this.rank = rank;
    }

    public User(String id, String name, double score) {
        this.id = id;
        this.name = name;
        this.score = score;
        this.rank = rank;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", score=" + score +
                ", rank=" + rank +
                '}';
    }
}